package com.yalemang.ktwa.ui.main

import android.os.Bundle
import com.yalemang.ktwa.R
import com.yalemang.mvp.BaseMvpActivity

class MainActivity:BaseMvpActivity<MainPresenter>(),MainContract.MainView {
    override fun attachMvp() {
        mPresenter = MainPresenter(MainModel(),this)
        //让P层具有生命周期感知能力
        mPresenter.bindLifecycle(lifecycle)
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }
}